package cn.ibizlab.odoo.core.odoo_mail.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_mail.domain.Mail_bot;
import cn.ibizlab.odoo.core.odoo_mail.filter.Mail_botSearchContext;

/**
 * 实体[Mail_bot] 服务对象接口
 */

public interface IMail_botService{
     boolean update(Mail_bot mail_bot) ;
     Mail_bot get(Integer id) ;
     Mail_bot get(Mail_bot mail_bot) ;
     boolean create(Mail_bot mail_bot) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean remove(Integer id) ;
     void createBatch(List<Mail_bot> mail_bots, int batchSize) ;
     void updateBatch(List<Mail_bot> mail_bots, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Mail_bot> searchDefault(Mail_botSearchContext context) ;

    /**
     * 转换ClientModel为Domain
     */
    public Mail_bot convert2Domain(cn.ibizlab.odoo.core.client.model.Imail_bot model ,Mail_bot domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Imail_bot convert2Model(Mail_bot domain , cn.ibizlab.odoo.core.client.model.Imail_bot model);

}
